﻿@{
    ViewBag.Title = "计量器具台账列表";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section scripts{
    <script src="~/Areas/Dev/ViewModels/Dev.viewModel.search.js"></script>
    <script type="text/javascript">
        var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
        var viewModel = function(){
            var self = this;
            Dev.viewModel.search.apply(this,arguments);
        }
        ko.bindingViewModel(new viewModel(data));
    </script>
}
<div class="z-toolbar">
    <a id="a_refresh" href="#" plain="true" class="easyui-linkbutton" icon="icon-arrow_refresh" title="刷新" data-bind="click:refreshClick">刷新</a>
    <a id="a_add" href="#" plain="true" class="easyui-linkbutton" icon="icon-add" title="新增" data-bind="click:addClick">新增</a>
    <a id="a_edit" href="#" plain="true" class="easyui-linkbutton" icon="icon-edit" data-bind="click:editClick" title="编辑">编辑</a>
    <a id="a_del" href="#" plain="true" class="easyui-linkbutton" icon="icon-cross" title="删除" data-bind="click:deleteClick">删除</a>
    @*<a id="a_audit" href="#" plain="true" class="easyui-linkbutton" icon="icon-user-accept" data-bind="click:auditClick" title="审核">审核</a>*@
    <a id="a_export" href="#" class="easyui-splitbutton" data-options="menu:'#dropdown',iconCls:'icon-download'">导出</a>
</div>

<div id="dropdown" style="width:100px; display:none;">
    <div data-options="iconCls:'icon-ext-xls'" suffix="xls" data-bind="click:downloadClick">Excel2003   </div>
    <div data-options="iconCls:'icon-page_excel'" suffix="xlsx" data-bind="click:downloadClick">Excel2007   </div>
    <div data-options="iconCls:'icon-ext-doc'" suffix="doc" data-bind="click:downloadClick">Word2003    </div>
</div>

<div id="condition" class="container_12" style="position:relative;">
    <div class="grid_1 lbl">仪器编号</div>
    <div class="grid_2 val"><input type="text" data-bind="value:form.Jlqjtz_Yqbh" class="z-txt" /></div>
    <div class="grid_1 lbl">仪器名称</div>
    <div class="grid_2 val"><input type="text" data-bind="value:form.Jlqjtz_Yqmc" class="z-txt" /></div>
    <div class="grid_1 lbl">规格型号</div>
    <div class="grid_2 val"><input type="text" data-bind="value:form.Jlqjtz_Ggxh" class="z-txt" /></div>
    <div class="clear"></div>

    <div class="grid_1 lbl">购买时间</div>
    <div class="grid_2 val"><input type="text" data-bind="value:form.Jlqjtz_Gmsj" formatter="com.formatDate" class="z-txt easyui-daterange" /></div>
    <div class="grid_1 lbl">制造厂家</div>
    <div class="grid_2 val"><input type="text" data-bind="value:form.Jlqjtz_Zzcj" class="z-txt "  /></div>
    <div class="grid_1 lbl">录入人</div>
    <div class="grid_2 val"><input type="text" data-bind="value:form.CreatePerson" class="z-txt " data-options="showblank:true" /></div>
    <div class="clear"></div>

    <div class="prefix_9" style="position:absolute;top:5px;height:0;">
        <a id="a_search" href="#" class="button button-blue" style="margin:0 15px;" data-bind="click:searchClick">查询</a>
        <a id="a_reset" href="#" class="button button-blue" data-bind="click:clearClick">清空</a>
    </div>
</div>


<table id="gridlist" data-bind="datagrid:grid">
    <thead>
        <tr>
            <th field="Jlqjtz_Yqbh" sortable="true" align="left" width="65">仪器编号</th>
            <th field="Jlqjtz_Yqmc" sortable="true" align="left" width="80">仪器名称</th>
            <th field="Jlqjtz_Ggxh" sortable="true" align="left" width="65">规格型号</th>
            <th field="Jlqjtz_Clfw" sortable="true" align="left" width="135">测量范围</th>
            <th field="Jlqjtz_Jqdj" sortable="true" align="left" width="65">精确等级</th>
            <th field="Jlqjtz_Ccrq" sortable="true" align="left" width="120" formatter="com.formatTime">出厂日期</th>
            <th field="Jlqjtz_Ccbh" sortable="true" align="left" width="100">出厂编号</th>
            <th field="Jlqjtz_Zzcj" sortable="true" align="left" width="100">制造厂家</th>
            <th field="Jlqjtz_Azdd" sortable="true" align="left" width="120">安装地点</th>
            <th field="Jlqjtz_Gmsj" sortable="true" align="left" width="120" formatter="com.formatTime">购买时间</th>
            <th field="Jlqjtz_Jyzq" sortable="true" align="left" width="65">校验周期</th>
            <th field="Jlqjtz_Jyzqdw" sortable="true" align="left" width="130">校验周期单位(年 月 日)</th>
            <th field="Jlqjtz_Jysj" sortable="true" align="left" width="120" formatter="com.formatTime">校验时间</th>
            <th field="Jlqjtz_Sydwbh" sortable="true" align="left" width="80">使用单位编号</th>
            <th field="Jlqjtz_Sydwmc" sortable="true" align="left" width="100">使用单位名称</th>
            <th field="CreatePerson" sortable="true" align="left" width="80">录入人</th>
            <th field="CreateDate" sortable="true" align="left" width="120" formatter="com.formatTime">录入日期</th>
            <th field="UpdatePerson" sortable="true" align="left" width="80">修改人</th>
            <th field="UpdateDate" sortable="true" align="left" width="120" formatter="com.formatTime">修改日期</th>
            <th field="ApprovePerson" sortable="true" align="left" width="80">确认人</th>
            <th field="ApproveDate" sortable="true" align="left" width="120" formatter="com.formatTime">确认日期</th>
            <th field="ApproveState" sortable="true" align="left" width="45">确认状态</th>
            <th field="ApproveRemark" sortable="true" align="left" width="200">确认说明</th>
        </tr>
    </thead>
</table>